package com.androidx.p013lv.mine.adapter;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.androidx.p013lv.base.recycler.BaseRecyclerAdapter;
import com.androidx.p013lv.base.recycler.BaseRecyclerHolder;
import com.androidx.p013lv.mine.C1207R;
import com.androidx.p013lv.mine.bean.RentalBean;

/* renamed from: com.androidx.lv.mine.adapter.ContactOfficialAdapter */
public class ContactOfficialAdapter extends BaseRecyclerAdapter<RentalBean, Holder> {
    public void MyHolder(Holder holder, int i) {
        holder.setData((RentalBean) getDataInPosition(i));
    }

    @Override // androidx.recyclerview.widget.RecyclerView.Adapter
    public Holder onCreateViewHolder(ViewGroup viewGroup, int i) {
        return new Holder(LayoutInflater.from(viewGroup.getContext()).inflate(C1207R.C1212layout.item_contact_official, viewGroup, false));
    }

    /* access modifiers changed from: package-private */
    /* renamed from: com.androidx.lv.mine.adapter.ContactOfficialAdapter$Holder */
    public static class Holder extends BaseRecyclerHolder {
        TextView tv_copy;
        TextView tv_details;

        public Holder(View view) {
            super(view);
            this.tv_details = (TextView) view.findViewById(C1207R.C1210id.tv_details);
            TextView textView = (TextView) view.findViewById(C1207R.C1210id.tv_copy);
            this.tv_copy = textView;
            textView.setOnClickListener(this);
        }

        public void setData(RentalBean rentalBean) {
            TextView textView = this.tv_details;
            textView.setText(rentalBean.getTitle() + "：" + rentalBean.getContactNo());
        }
    }
}
